CC = gcc
RM = rm
CFLAGS = -pipe -Wall

#LIBS = -lcares -lccn -lcrypto 
#INSTALL_DIR=/usr/local/bin

#$(CC) $(CFLAGS) -o $@  common.o agent.o $(LIBS)

SRCS = common.c agent.c
PROG = agent

OBJS = ${SRCS:.c=.o}

default all: $(PROG)

agent: common.o agent.o
	$(CC) $(CFLAGS) -o $@  common.o agent.o 

rmtmp:
	$(RM) *.o

clean: rmtmp
	$(RM) $(PROG)

.c.o:
	$(CC) $(CFLAGS) -c $< 

install: 
	install -m 0755 $(PROG) $(INSTALL_DIR)

uninstall:
	$(RM) -f $(INSTALL_DIR)/$(PROG)

.PHONY: all rmtmp clean
